package com.example.demo.service.impl;

import com.example.demo.entity.ProjectPermissionEntity;
import com.example.demo.mapper.ProjectPermissionMapper;
import com.example.demo.service.ProjectPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @DESCRIPTION:
 * @AUTOOR: Lee
 * @DATE: 2022年09月18日 1:30
 */
@Service
public class ProjectPermissionServiceImpl implements ProjectPermissionService {

    private final ProjectPermissionMapper projectPermissionMapper;

    @Autowired
    public ProjectPermissionServiceImpl(ProjectPermissionMapper projectPermissionMapper) {
        this.projectPermissionMapper = projectPermissionMapper;
    }

    @Override
    public ProjectPermissionEntity create(ProjectPermissionEntity projectPermission) {
        projectPermissionMapper.insert(projectPermission);
        return projectPermission;
    }
}
